<div class="content">
	<textarea id="pre">
		var navigatorTest = (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
		var detectDeviceType = function(){
			return navigatorTest?'Mobile':'Desktop'
		}
		detectDeviceType();
	</textarea>
</div>